package inter;

public class Break extends Stmt {
	
	Stmt stmt;
	
	public Break(){
		if(Stmt.Enclosing == Stmt.Null) error("Comando 'break' fora de um loop");
		stmt = Stmt.Enclosing;
	}
	
	public void gen(int b, int a){
		emit("goto L" + stmt.after + ";");
	}

}
